package com.hlhj.carview.customView

import android.view.LayoutInflater
import android.view.View
import com.binioter.guideview.Component
import com.hlhj.carview.R

/**
 *NeverMore
 *2020/9/14
 **/
class MyCompoment: Component {
    override fun getAnchor(): Int {
        return Component.ANCHOR_TOP
    }

    override fun getView(inflater: LayoutInflater?): View? {
        inflater?.let {
            val inflate = it.inflate(R.layout.borrow_guide, null)
            return inflate
        }
        return null
    }

    override fun getYOffset(): Int {
        return 0
    }

    override fun getFitPosition(): Int {
        return Component.FIT_END

    }

    override fun getXOffset(): Int {
        return -60

    }
}